/* 通用样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f4f4f9;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: 2.5em;
  margin: 20px 0;
  color: #4CAF50;
}

button, a.btn {
  padding: 12px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin: 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button:hover, a.btn:hover {
  background-color: #45a049;
}

input[type="text"] {
  padding: 10px;
  margin: 10px 0;
  width: 60%;
  max-width: 300px;
  min-width: 250px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.hidden {
  display: none !important;
  visibility: hidden;
}

.hint {
  color: #ff6347;
  font-size: 14px;
  margin-top: 10px;
  max-width: 80%;
  word-wrap: break-word;
  text-align: center;
}

.next-btn, .prev-btn {
  display: inline-block;
  margin-top: 20px;
}

#slideshow {
  width: 50%; /* 调整图片宽度为容器的80% */
  height: auto; /* 根据宽度等比例缩放高度 */
  display: block; /* 使图片为块级元素，方便居中对齐 */
  margin: 50px auto; /* 上下外边距20px，水平居中 */
  border-radius: 10px; /* 可选：给图片添加圆角 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 可选：添加阴影 */
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

a.btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ffbb33;
  color: white;
  text-decoration: none;
  font-size: 18px;
  margin-top: 30px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

a.btn:hover {
  background-color: #ff9933;
}

/* 结果部分样式 */
#result-section {
  margin-top: 30px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#celebrate {
  margin-top: 20px;
  padding: 15px 30px;
  background-color: #FF5722;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#celebrate:hover {
  background-color: #E64A19;
}

/* 响应式设计 */
@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }

  input[type="text"] {
    width: 80%;
  }

  button, a.btn {
    font-size: 14px;
    padding: 10px 15px;
  }

  .container {
    padding: 20px;
  }

  .question-img {
    max-width: 300px;
  }
}

.question-img {
  max-width: 400px;
  width: 100%;
  height: auto;
}
